<?php
/**
 * Created by PhpStorm.
 * User: yf
 * Date: 2019-01-01
 * Time: 20:06
 */

return [
    'SERVER_NAME' => "EasySwoole",
    'MAIN_SERVER' => [
        'LISTEN_ADDRESS' => '0.0.0.0',
        'PORT' => 9501,
        'SERVER_TYPE' => EASYSWOOLE_WEB_SOCKET_SERVER, //可选为 EASYSWOOLE_SERVER  EASYSWOOLE_WEB_SERVER EASYSWOOLE_WEB_SOCKET_SERVER,EASYSWOOLE_REDIS_SERVER
        'SOCK_TYPE' => SWOOLE_TCP,
        'RUN_MODEL' => SWOOLE_PROCESS,
        'SETTING' => [
            'worker_num' => 8,
            'reload_async' => true,
            'max_wait_time'=>3
        ],
        'TASK'=>[
            'workerNum'=>4,
            'maxRunningNum'=>128,
            'timeout'=>15
        ]
    ],
    'TEMP_DIR' => '/tmp/',
    'LOG_DIR' => null,
    'PHAR' => [
        'EXCLUDE' => ['.idea', 'Log', 'Temp', 'easyswoole', 'easyswoole.install']
    ],
    'MYSQL' => [
        'host' => 'webim-mysql',//防止报错,就不切换数据库了
        'port' => '3306',
        'user' => 'webim',//数据库用户名
        'password' => 'webim',//数据库密码
        'database' => 'webim',//数据库
        'timeout' => '5',
        'charset' => 'utf8',
        'POOL_MAX_NUM' => '6',
        'POOL_TIME_OUT' => '0.1'
    ],

    /*################ REDIS CONFIG ##################*/
    'REDIS'         => [
        'host'          => 'webim-redis',
        'port'          => '6379',
        'auth'          => '',
        'POOL_MAX_NUM'  => '6',
        'POOL_TIME_OUT' => '0.1',
    ],

    'FAST_CACHE' => [//fastCache组件
        'PROCESS_NUM' => 1//进程数,大于0才开启
    ],


    'WECHAT_CONFIG' => [
        'app_id' => 'wx7b7309098641db43',
        'secret' => '511cf92fccd0477cc5dfc8cca8461986',
    
        // 指定 API 调用返回结果的类型：array(default)/collection/object/raw/自定义类名
        'response_type' => 'array',
    
    ] 
];
